class CreateItems < ActiveRecord::Migration

  def self.up
    create_table :items do |t|
      t.column :link, :string, :null => false
      t.column :title, :string, :null => false
      t.column :description, :text
      t.column :date, :datetime
      t.column :feed_id, :integer, :null => false
    end

    add_index :items, :link
  end

  def self.down
    drop_table :items
  end

end
